
#encoding=UTF-8

from Error import *
from Building import *

class Barracks(Building):
	def __init__(self):
		Building.__init__(self)
		self.url = "http://clashofclans.wikia.com/wiki/Barracks"
		self.number_available_dsec = """
1	2	2	3	3	3	4	4	4	4
"""
		self.level_info_desc = """
1	200	1 minute	7	25	250	20	1	Barbarian
2	1,000	15 minutes	30	25	270	25	1	Archer
3	2,500	2 hours	84	25	280	30	1	Goblin
4	5,000	4 hours	120	25	290	35	2	Giant
5	10,000	10 hours	189	25	310	40	3	Wall Breaker
6	80,000	16 hours	240	25	320	45	4	Balloon
7	240,000	1 day	293	25	340	50	5	Wizard
8	700,000	2 days	415	25	350	55	6	Healer
9	1,500,000	4 days	587	25	390	60	7	Dragon
10	2,000,000	6 days	720	25	420	75	8	P.E.K.K.A
"""
		self._DoParse()

	def _HitPointsIndex(self):
		return 5

	def _BuildCostType(self):
		return 1 #Elixir

	def _BuildCostIndex(self):
		return 1

	def _BuildTimeIndex(self):
		return 2

	def _ExperienceGainedIndex(self):
		return 3

	def _TownHallLevelRequiredIndex(self):
		return 7

